package com.ship.contract.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ship.contract.bean.ConTemplate;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ConTemplateMapper extends BaseMapper<ConTemplate> {

    /**
     * 获取所有合同编号
     * @return
     */
    @Select("SELECT template_number FROM con_template")
    List<String> getAllContractNumbers();

    List<ConTemplate> queryPage(@Param("templateName") String templateName,@Param("templateTypeStr") String templateTypeStr,@Param("templateType") Integer templateType,@Param("date")String date,@Param("createBy") String createBy);
}
